﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer;
using System.Globalization;

namespace BusinessLogicLayer
{
    public class ShowBangCong
    {
        CongBLL cBLL = new CongBLL();
        TangCaBLL tcBLL = new TangCaBLL();

        public string BangCongSingle(int _thang, int _nam, int _manv)
        {
            string _bangcong = "";

            IFormatProvider format = new CultureInfo("vi-VN");
            List<CONG2> ls = cBLL.LayMaCong(_thang, _nam, _manv);

            int days = DateTime.DaysInMonth(_nam, _thang);

            _bangcong += "<table cellspacing='0' cellpadding='5px' style='background-color:White;' >" +
                         "<tr style='background-color:#CBCAFA; width:10px;'>";
            for (int i = 1; i <= days; i++)
            {
                DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);
                if (i <= 9)
                {
                    if (ngay.DayOfWeek.ToString() == "Sunday")
                    {
                        _bangcong += "<td  align='center' style='border-bottom:1px solid #968DFD;color:Red;'>" + "0" + i.ToString() + "</td>";
                    }
                    else
                    {
                        _bangcong += "<td  align='center' style='border-bottom:1px solid #968DFD;'>" + "0" + i.ToString() + "</td>";
                    }

                }
                else
                {
                    if (ngay.DayOfWeek.ToString() == "Sunday")
                    {
                        _bangcong += "<td  align='center' style='border-bottom:1px solid #968DFD;color:Red;'>" + i.ToString() + "</td>";
                    }
                    else
                    {
                        _bangcong += "<td  align='center' style='border-bottom:1px solid #968DFD;'>" + i.ToString() + "</td>";
                    }
                }
                    //_bangcong += "<td align='center' style='border-bottom:1px solid #968DFD;'>" + i.ToString() + "</td>";
            }

            _bangcong += "</tr><tr>";

            for (int i = 1; i <= days; i++)
            {
                //_bangcong += "<td style='color:Green; width:50px;'>";
                DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);

                foreach (var o in ls)
                {
                    if (o.MaCong == null)
                    {
                        o.MaCong = "";
                    }
                    else { }

                    if (ngay == o.Ngay && (o.MaCong).Trim() == "1")
                    {
                        _bangcong += "<td align='center' style='color:Green; width:40px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
                        _bangcong += o.MaCong.ToString();
                        _bangcong += "</td>";
                        goto xong;
                    }
                    else if (ngay == o.Ngay && (o.MaCong).Trim() == "1o")
                    {
                        _bangcong += "<td align='center' style='color:Blue; width:40px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
                        _bangcong += o.MaCong.ToString();
                        _bangcong += "</td>";
                        goto xong;
                    }
                    else if (ngay == o.Ngay && (o.MaCong).Trim() == "N")
                    {
                        _bangcong += "<td align='center' style='color:Orange; width:40px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
                        _bangcong += o.MaCong.ToString();
                        _bangcong += "</td>";
                        goto xong;
                    }
                    else if (ngay == o.Ngay && (o.MaCong).Trim() == "No")
                    {
                        _bangcong += "<td align='center' style='color:Red; width:40px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
                        _bangcong += o.MaCong.ToString();
                        _bangcong += "</td>";
                        goto xong;
                    }
                    else if (ngay == o.Ngay)
                    {
                        _bangcong += "<td align='center' style='color:Maroon; width:40px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
                        _bangcong += o.MaCong.ToString();
                        _bangcong += "</td>";
                        goto xong;
                    }
                }

                _bangcong += "<td style='color:Red; width:40px; border-bottom:1px solid #968DFD;'>";
                _bangcong += "&nbsp;";
                _bangcong += "</td>";
                xong: { }

            }

            _bangcong += "</tr><tr>";

            List<TANGCA2> tc = tcBLL.LayGioTC2(_thang, _nam, _manv);

            for (int i = 1; i <= days; i++)
            {
                DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);

                foreach (var a in tc)
                {
                    if (a.Ngay == ngay)
                    {
                        _bangcong += "<td align='center' style='color:Blue; width:40px; font-weight:bold; border-bottom:1px solid #968DFD;'>" + a.ThoiGian.ToString() + "</td>";
                        goto xong;
                    }                        
                }
                _bangcong += "<td align='center' style='color:Blue; width:40px; font-weight:bold; border-bottom:1px solid #968DFD;'>&nbsp;</td>";
                xong: {}

            }
            _bangcong += "</tr></table>";

            return _bangcong;
        }

        //public string BangCongMulti(List<NHANVIEN2> nv, int _thang, int _nam)
        //{
        //    string _bangcong = "";

        //    IFormatProvider format = new CultureInfo("vi-VN");
        //    //List<CONG2> ls = cBLL.LayMaCong(_thang, _nam, _manv);

        //    int days = DateTime.DaysInMonth(_nam, _thang);

        //    _bangcong += "<table border='0px' width='1000px' cellspacing='0' cellpadding='3px' cellpadding='5' style=' border-color:Gray; background-color:White;' >" +
        //                 "<tr style='background-color:#CBCAFA; width:10px; font-weight:bold;'>" +
        //                 "<td style='border-bottom:1px solid #968DFD; width: 150px;'>Ngày(Tháng)</td>";
        //    for (int i = 1; i <= days; i++)
        //    {
        //        if (i <= 9)
        //        {
        //            _bangcong += "<td align='center' style='border-bottom:1px solid #968DFD; width:25px;'>" + "0" + i.ToString() + "</td>";
        //        }
        //        else
        //            _bangcong += "<td align='center' style='border-bottom:1px solid #968DFD; width:25px;'>" + i.ToString() + "</td>";
        //    }

        //    _bangcong += "</tr>";
        //    foreach (var n in nv)
        //    {
        //        _bangcong += "<td style='border-bottom:1px solid #968DFD; width: 150px'>" + n.HoTen + "</td>";
        //        List<CONG2> ls = cBLL.LayMaCong(_thang, _nam, n.MaNV);

        //        for (int i = 1; i <= days; i++)
        //        {
        //            //_bangcong += "<td style='color:Green; width:50px;'>";
        //            DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);

        //            foreach (var o in ls)
        //            {
        //                if (o.MaCong == null)
        //                {
        //                    o.MaCong = "";
        //                }
        //                else { }

        //                if (ngay == o.Ngay && (o.MaCong).Trim() == "1")
        //                {
        //                    _bangcong += "<td align='center' style='color:Green; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
        //                    _bangcong += o.MaCong.ToString();
        //                    _bangcong += "</td>";
        //                    goto xong;
        //                }
        //                else if (ngay == o.Ngay && (o.MaCong).Trim() == "1o")
        //                {
        //                    _bangcong += "<td align='center' style='color:Blue; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
        //                    _bangcong += o.MaCong.ToString();
        //                    _bangcong += "</td>";
        //                    goto xong;
        //                }
        //                else if (ngay == o.Ngay && (o.MaCong).Trim() == "N")
        //                {
        //                    _bangcong += "<td align='center' style='color:Orange; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
        //                    _bangcong += o.MaCong.ToString();
        //                    _bangcong += "</td>";
        //                    goto xong;
        //                }
        //                else if (ngay == o.Ngay && (o.MaCong).Trim() == "No")
        //                {
        //                    _bangcong += "<td align='center' style='color:Red; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
        //                    _bangcong += o.MaCong.ToString();
        //                    _bangcong += "</td>";
        //                    goto xong;
        //                }
        //                else if (ngay == o.Ngay)
        //                {
        //                    _bangcong += "<td align='center' style='color:Maroon; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
        //                    _bangcong += o.MaCong.ToString();
        //                    _bangcong += "</td>";
        //                    goto xong;
        //                }
        //            }

        //            _bangcong += "<td style='color:Red; width:10px; border-bottom:1px solid #968DFD;'>";
        //            _bangcong += "</td>";
        //            xong: { }

        //        }
        //        _bangcong += "</tr>";
        //    }

        //    _bangcong += "</table>";

        //    return _bangcong;
        //}

        public string BangCongMulti(List<NHANVIEN2> nv, int _thang, int _nam)
        {
            string _bangcong = "";

            IFormatProvider format = new CultureInfo("vi-VN");
            //List<CONG2> ls = cBLL.LayMaCong(_thang, _nam, _manv);
            int days = DateTime.DaysInMonth(_nam, _thang);

            _bangcong += "<table style='background-color:White;' cellspacing='0' cellpadding='0' border='0' width='1025'><tr><td>"; //table ngoai cung
            _bangcong += "<table cellspacing='0' cellpadding='1' border='0' width='1000'><tr style='background-color:#CBCAFA; width:10px; font-weight:bold;'>"; //table -> khung thang
            _bangcong += "<td style='border-bottom:1px solid #968DFD; width: 17%;'>Ngày(Tháng)</td>";

            for (int i = 1; i <= days; i++)
            {
                DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);
                if (i <= 9)
                {
                    if (ngay.DayOfWeek.ToString() == "Sunday")
                    {
                        _bangcong += "<td  align='center' style='border-bottom:1px solid #968DFD;color:Red;'>" + "0" + i.ToString() + "</td>";
                    }
                    else
                    {
                        _bangcong += "<td  align='center' style='border-bottom:1px solid #968DFD;'>" + "0" + i.ToString() + "</td>";
                    }

                }
                else
                {
                    if (ngay.DayOfWeek.ToString() == "Sunday")
                    {
                        _bangcong += "<td  align='center' style='border-bottom:1px solid #968DFD;color:Red;'>" + i.ToString() + "</td>";
                    }
                    else
                    {
                        _bangcong += "<td  align='center' style='border-bottom:1px solid #968DFD;'>" + i.ToString() + "</td>";
                    }
                }
            }

            _bangcong += "</tr>";

            _bangcong += "</tr></table>";//end table -> khung thang
            _bangcong += "</td></tr>";
            _bangcong += "<tr><td>";
            _bangcong += "<div style='width: 1025px; height: 200px; overflow: auto;'>";

            _bangcong += "<table cellspacing='0' cellpadding='1' border='0' width='1000'>";//table -> khung du lieu
            foreach (var n in nv)
            {
                _bangcong += "<tr><td style='border-bottom:1px solid #968DFD; width: 17%'>" + n.HoTen + "</td>";
                List<CONG2> ls = cBLL.LayMaCong(_thang, _nam, n.MaNV);

                for (int i = 1; i <= days; i++)
                {
                    //_bangcong += "<td style='color:Green; width:50px;'>";
                    DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);

                    foreach (var o in ls)
                    {
                        if (o.MaCong == null)
                        {
                            o.MaCong = "";
                        }
                        else { }

                        if (ngay == o.Ngay && (o.MaCong).Trim() == "1")
                        {
                            _bangcong += "<td align='center' style='color:Green; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
                            _bangcong += o.MaCong.ToString();
                            _bangcong += "</td>";
                            goto xong;
                        }
                        else if (ngay == o.Ngay && (o.MaCong).Trim() == "1o")
                        {
                            _bangcong += "<td align='center' style='color:Blue; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
                            _bangcong += o.MaCong.ToString();
                            _bangcong += "</td>";
                            goto xong;
                        }
                        else if (ngay == o.Ngay && (o.MaCong).Trim() == "N")
                        {
                            _bangcong += "<td align='center' style='color:Orange; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
                            _bangcong += o.MaCong.ToString();
                            _bangcong += "</td>";
                            goto xong;
                        }
                        else if (ngay == o.Ngay && (o.MaCong).Trim() == "No")
                        {
                            _bangcong += "<td align='center' style='color:Red; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
                            _bangcong += o.MaCong.ToString();
                            _bangcong += "</td>";
                            goto xong;
                        }
                        else if (ngay == o.Ngay)
                        {
                            _bangcong += "<td align='center' style='color:Maroon; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
                            _bangcong += o.MaCong.ToString();
                            _bangcong += "</td>";
                            goto xong;
                        }
                    }

                    _bangcong += "<td style='color:Red; width:10px; border-bottom:1px solid #968DFD;'>";
                    _bangcong += "</td>";
                xong: { }

                }
                _bangcong += "</tr>";
                
            }

            _bangcong += "<tr style='color:White;'>";
            _bangcong += "<td style='border-bottom:0px solid #968DFD; width: 150px;'>Ngày(Tháng)</td>";

            for (int i = 1; i <= days; i++)
            {
                if (i <= 9)
                {
                    _bangcong += "<td align='center' style='border-bottom:0px solid #968DFD; width:25px;'>" + "0" + i.ToString() + "</td>";
                }
                else
                    _bangcong += "<td align='center' style='border-bottom:0px solid #968DFD; width:25px;'>" + i.ToString() + "</td>";
            }
            _bangcong += "</tr>";
            _bangcong += "</table></div></td></tr></table>";

            return _bangcong;
        }

        public string BangTCMulti(List<NHANVIEN2> nv, int _thang, int _nam)
        {
            string _bangtc = "";

            IFormatProvider format = new CultureInfo("vi-VN");
            //List<CONG2> ls = cBLL.LayMaCong(_thang, _nam, _manv);
            int days = DateTime.DaysInMonth(_nam, _thang);

            _bangtc += "<table style='background-color:White;' cellspacing='0' cellpadding='0' border='0' width='1025'><tr><td>"; //table ngoai cung
            _bangtc += "<table cellspacing='0' cellpadding='1' border='0' width='1000'><tr style='background-color:#CBCAFA; width:10px; font-weight:bold;'>"; //table -> khung thang
            _bangtc += "<td style='border-bottom:1px solid #968DFD; width: 150px;'>Ngày(Tháng)</td>";

            for (int i = 1; i <= days; i++)
            {
                DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);
                if (i <= 9)
                {
                    if (ngay.DayOfWeek.ToString() == "Sunday")
                    {
                        _bangtc += "<td  align='center' style='border-bottom:1px solid #968DFD;color:Red;'>" + "0" + i.ToString() + "</td>";
                    }
                    else
                    {
                        _bangtc += "<td  align='center' style='border-bottom:1px solid #968DFD;'>" + "0" + i.ToString() + "</td>";
                    }

                }
                else
                {
                    if (ngay.DayOfWeek.ToString() == "Sunday")
                    {
                        _bangtc += "<td  align='center' style='border-bottom:1px solid #968DFD;color:Red;'>" + i.ToString() + "</td>";
                    }
                    else
                    {
                        _bangtc += "<td  align='center' style='border-bottom:1px solid #968DFD;'>" + i.ToString() + "</td>";
                    }
                }
            }

            _bangtc += "</tr>";

            _bangtc += "</tr></table>";//end table -> khung thang
            _bangtc += "</td></tr>";
            _bangtc += "<tr><td>";
            _bangtc += "<div style='width: 1025px; height: 200px; overflow: auto;'>";

            _bangtc += "<table cellspacing='0' cellpadding='1' border='0' width='1000'>";//table -> khung du lieu
            foreach (var n in nv)
            {
                _bangtc += "<tr><td style='border-bottom:1px solid #968DFD; width: 150px'>" + n.HoTen + "</td>";
                List<TANGCA2> ls = tcBLL.LayGioTC2(_thang, _nam, n.MaNV);

                for (int i = 1; i <= days; i++)
                {
                    //_bangcong += "<td style='color:Green; width:50px;'>";
                    DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);

                   // DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);

                    foreach (var o in ls)
                    {
                        if (ngay == o.Ngay)
                        {
                            _bangtc += "<td align='center' style='color:Green; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
                            _bangtc += o.ThoiGian.ToString();
                            _bangtc += "</td>";
                            goto xong;
                        }
                    }
                    _bangtc += "<td style='color:Red; width:25px; border-bottom:1px solid #968DFD;'>";
                    _bangtc += "</td>";
                xong: { }

                }
                _bangtc += "</tr>";

            }

            _bangtc += "<tr style='color:White;'>";
            _bangtc += "<td style='border-bottom:0px solid #968DFD; width: 150px;'>Ngày(Tháng)</td>";

            for (int i = 1; i <= days; i++)
            {
                if (i <= 9)
                {
                    _bangtc += "<td align='center' style='border-bottom:0px solid #968DFD; width:25px;'>" + "0" + i.ToString() + "</td>";
                }
                else
                    _bangtc += "<td align='center' style='border-bottom:0px solid #968DFD; width:25px;'>" + i.ToString() + "</td>";
            }
            _bangtc += "</tr>";
            _bangtc += "</table></div></td></tr></table>";

            return _bangtc;
        }

        //public string BangTCMulti2(List<NHANVIEN2> nv, int _thang, int _nam)
        //{
        //    string _bangtc = "";

        //    IFormatProvider format = new CultureInfo("vi-VN");
        //    //List<CONG2> ls = cBLL.LayMaCong(_thang, _nam, _manv);

        //    int days = DateTime.DaysInMonth(_nam, _thang);

        //    _bangtc += "<table border='0px' width='1000px' cellspacing='0' cellpadding='4px' style=' border-color:Gray; background-color:White;' >" +
        //                 "<tr style='background-color:#CBCAFA; width:10px; font-weight:bold;'>" +
        //                 "<td style='border-bottom:1px solid #968DFD; width: 150px;'>Ngày(Tháng)</td>";
        //    for (int i = 1; i <= days; i++)
        //    {
        //        DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);
        //        if (i <= 9)
        //        {
        //            if (ngay.DayOfWeek.ToString() == "Sunday")
        //            {
        //                _bangtc += "<td  align='center' style='border-bottom:1px solid #968DFD;color:Red;'>" + "0" + i.ToString() + "</td>";
        //            }
        //            else
        //            {
        //                _bangtc += "<td  align='center' style='border-bottom:1px solid #968DFD;'>" + "0" + i.ToString() + "</td>";
        //            }

        //        }
        //        else
        //        {
        //            if (ngay.DayOfWeek.ToString() == "Sunday")
        //            {
        //                _bangtc += "<td  align='center' style='border-bottom:1px solid #968DFD;color:Red;'>" + i.ToString() + "</td>";
        //            }
        //            else
        //            {
        //                _bangtc += "<td  align='center' style='border-bottom:1px solid #968DFD;'>" + i.ToString() + "</td>";
        //            }
        //        }
        //    }

        //    _bangtc += "</tr>";
        //   // _bangtc += "<tr>";

        //    foreach (var n in nv)
        //    {
        //        //_bangtc += "<tr>";
        //        List<TANGCA2> tc = tcBLL.LayGioTC2(_thang, _nam, n.MaNV);

        //        _bangtc += "<td style='border-bottom:1px solid #968DFD; width: 150px'>" + n.HoTen + "</td>";

        //        for (int i = 1; i <= days; i++)
        //        {
        //            DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);

        //            foreach (var a in tc)
        //            {
        //                if (a.Ngay == ngay)
        //                {
        //                    _bangtc += "<td align='center' style='color:Blue; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>" + a.ThoiGian.ToString() + "</td>";
        //                }
        //                else
        //                {
        //                    _bangtc += "<td align='center' style='color:Blue; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
        //                    _bangtc += "</td>";
        //                }
        //            }

        //        }
        //        _bangtc += "</tr>";
        //    }
            
        //    _bangtc += "</table>";
        //    return _bangtc;
        //}


        //public string BangTCMulti(List<NHANVIEN2> nv, int _thang, int _nam)
        //{
        //    string _bangtc = "";

        //    IFormatProvider format = new CultureInfo("vi-VN");
        //    //List<CONG2> ls = cBLL.LayMaCong(_thang, _nam, _manv);

        //    int days = DateTime.DaysInMonth(_nam, _thang);

        //    _bangtc += "<table border='0px' width='1000px' cellspacing='0' cellpadding='4px' style=' border-color:Gray; background-color:White;' >" +
        //                 "<tr style='background-color:#CBCAFA; width:10px; font-weight:bold;'>" +
        //                 "<td style='border-bottom:1px solid #968DFD; width: 150px;'>Ngày(Tháng)</td>";
        //    for (int i = 1; i <= days; i++)
        //    {
        //        DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);
        //        if (i <= 9)
        //        {
        //            if (ngay.DayOfWeek.ToString() == "Sunday")
        //            {
        //                _bangtc += "<td  align='center' style='border-bottom:1px solid #968DFD;color:Red;'>" + "0" + i.ToString() + "</td>";
        //            }
        //            else
        //            {
        //                _bangtc += "<td  align='center' style='border-bottom:1px solid #968DFD;'>" + "0" + i.ToString() + "</td>";
        //            }

        //        }
        //        else
        //        {
        //            if (ngay.DayOfWeek.ToString() == "Sunday")
        //            {
        //                _bangtc += "<td  align='center' style='border-bottom:1px solid #968DFD;color:Red;'>" + i.ToString() + "</td>";
        //            }
        //            else
        //            {
        //                _bangtc += "<td  align='center' style='border-bottom:1px solid #968DFD;'>" + i.ToString() + "</td>";
        //            }
        //        }
        //    }

        //    _bangtc += "</tr>";
        //    foreach (var n in nv)
        //    {
        //        _bangtc += "<td style='border-bottom:1px solid #968DFD; width: 150px'>" + n.HoTen + "</td>";
        //        //List<CONG2> ls = cBLL.LayMaCong(_thang, _nam, n.MaNV);
        //        List<TANGCA2> ls = tcBLL.LayGioTC2(_thang, _nam, n.MaNV);

        //        for (int i = 1; i <= days; i++)
        //        {
        //            //_bangcong += "<td style='color:Green; width:50px;'>";
        //            DateTime ngay = (DateTime)Convert.ToDateTime(i.ToString() + "/" + _thang.ToString() + "/" + _nam.ToString(), format);

        //            foreach (var o in ls)
        //            {
        //                if (ngay == o.Ngay)
        //                {
        //                    _bangtc += "<td align='center' style='color:Green; width:25px; font-weight:bold; border-bottom:1px solid #968DFD;'>";
        //                    _bangtc += o.ThoiGian.ToString();
        //                    _bangtc += "</td>";
        //                    goto xong;
        //                }
        //            }
        //            _bangtc += "<td style='color:Red; width:25px; border-bottom:1px solid #968DFD;'>";
        //            _bangtc += "</td>";
        //        xong: { }

        //        }
        //        _bangtc += "</tr>";
        //    }

        //    _bangtc += "</table>";

        //    return _bangtc;
        //}
    }
}
